package com.hx.er.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.hx.er.bean.base.RestraurantBean;
import com.hx.er.dao.IRestraurantDao;
import com.hx.er.mapper.IRestraurantMapper;

public class RestraurantDaoImpl implements IRestraurantDao {

	@Autowired
	private IRestraurantMapper restraurantMapper;

	public List<RestraurantBean> getRestList(Map<String, Object> conditions) {
		return this.restraurantMapper.getRestList(conditions);
	}

	@Override
	public int getRestCount(Map<String, Object> conditions) {
		return this.restraurantMapper.getRestCount(conditions);
	}

	@Override
	public RestraurantBean getRestAliveById(long restId) {
		return this.restraurantMapper.getRestAliveById(restId);
	}

	@Override
	public int deleteRest(RestraurantBean restBean) {
		return this.restraurantMapper.deleteRest(restBean);
	}

	@Override
	public int reviveRest(RestraurantBean restBean) {
		return this.restraurantMapper.reviveRest(restBean);
	}

	@Override
	public RestraurantBean getRestById(long restId) {
		return this.restraurantMapper.getRestById(restId);
	}

	@Override
	public int updateRest(RestraurantBean restBean) {
		return this.restraurantMapper.updateRest(restBean);
	}

	@Override
	public void insertRestWithoutId(RestraurantBean restBean) {
		this.restraurantMapper.insertRestWithoutId(restBean);
	}

	@Override
	public int checkServerName(RestraurantBean restBean) {
		return this.restraurantMapper.checkServerName(restBean);
	}

	@Override
	public RestraurantBean getNewRest() {
		return this.restraurantMapper.getNewestRest();
	}

	@Override
	public int updateRestAddr(RestraurantBean restBean) {
		return this.restraurantMapper.updateRestAddr(restBean);
	}
}
